home *** CD-ROM | disk | FTP | other *** search
- property switch
- global gMasterData
-
- on mouseDown me
- case the switch of me of
- #on:
- if not (the musicChoice of gMasterData) then
- set the member of sprite (the spriteNum of me + 1) to member "off"
- set the member of sprite the spriteNum of me to member "on dn"
- updateStage()
- switchMusic(gMasterData)
- end if
- #off:
- if the musicChoice of gMasterData then
- set the member of sprite (the spriteNum of me - 1) to member "on"
- set the member of sprite the spriteNum of me to member "off dn"
- updateStage()
- switchMusic(gMasterData)
- end if
- end case
- end
-
- on beginSprite me
- case the switch of me of
- #on:
- if the musicChoice of gMasterData then
- set the member of sprite the spriteNum of me to member "on dn"
- end if
- #off:
- if not (the musicChoice of gMasterData) then
- set the member of sprite the spriteNum of me to member "off dn"
- end if
- end case
- end
-
- on getPropertyDescriptionList
- set propList to [#switch: [#comment: "On or Off:", #format: #symbol, #range: [#on, #off], #default: #on]]
- return propList
- end
-